home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / simulato / v2_3_mc6.tz / v2_3_mc6 / testfiles / test3.asm < prev    next >
Assembly Source File  |  1994-05-02  |  460b  |  22 lines

  1. ;
  2. ;   test3.asm
  3. ;   C. Ward.  2/18/93
  4. ;   Another short test file to exercise different instructions,
  5. ;   in this case, the mulu instruction.  At termination of the
  6. ;   program the value of D1 = $????0002, A0 = $00001200.
  7. ;
  8. ;      ORG $1000
  9.       MOVE.L #$1200,A0
  10.       CLR (A0)
  11.       CLR.W D1
  12.       MOVE.B #02,D2
  13.       SWAP D2
  14.       CLR.W D2
  15.       ADDI #2,D1
  16.       MULU D1,D2
  17.       CMP.L #$20,A0
  18.       OR.W D2,D1
  19.       MOVE.W #228,D7
  20.       TRAP #14
  21.       END
  22.